package com.bos.data.repositories.jpa;

import com.bos.data.model.BosProjectModel;
import com.bos.data.model.TProjectHistoryModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * create by luojie 2018/6/6
 */
public interface ProjectHistoryJPARepository extends JpaRepository<TProjectHistoryModel, Integer>, JpaSpecificationExecutor<TProjectHistoryModel> {
    @Query("select a from TProjectHistoryModel a where a.wName=?1 order by a.updateTime desc ")
    List<TProjectHistoryModel> getAllByWName(String name);
}
